package com.mxf.code.test01Plush策略;

import com.mxf.code.test01.Invoices;

/**
 * @author 28382
 * 悲剧计算类
 */
public class CalTragedy extends Calculate {
    public int calAmount(Invoices perf) {
        int thisAmount = 40000;
        if (perf.getAudience() > 30) {
            thisAmount += 1000 * (perf.getAudience() - 30);
        }
        return thisAmount;
    }
}
